PEGetNthTableType

Use PEGetNthTableType to determine the type of each table. This function is one of a series of functions that enable you to retrieve and update database information in an opened report so that the report can be printed using different server, database, user, and/or table location settings.

Syntax
BOOL CRPE_API PEGetNthTableType (
        short printJob,
        short tableN,
        PETableType FAR *tableType );
Parameters

printJob

Specifies the print job for which you want to determine a table type.

tableN

Specifies the 0-based number of the table for which you want to determine the type. Table numbers start at 0. For example, if PEGetNTables returns 2, call PEGetNthTableType twice with table numbers of 0 and 1.

tableType

Specifies a pointer to PETableType.

Returns
Remarks
VB Syntax

VB Sample Code for modifying database table settings

Declare Function PEGetNthTableType Lib "crpe32.dll" ( _
    ByVal printJob As Integer, ByVal TableN As Integer, _
    TableType As PETableType ) As Integer
Delphi Syntax

Delphi code for getting/setting table location

function PEGetNthTableType (
    printJob: Word;
    tableN: Integer;
    var tableType: PETableType
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com